Skip to content

refactor: adjust Columns multi-column breakpoint#229

Merged
brandonmcconnell merged 1 commit intomainfrom
brandon/adjust-container-query-breakpoint-for-columns
Apr 8, 2026
Merged

refactor: adjust Columns multi-column breakpoint#229
brandonmcconnell merged 1 commit intomainfrom
brandon/adjust-container-query-breakpoint-for-columns

Conversation

@brandonmcconnell
Copy link
Copy Markdown
Contributor

@brandonmcconnell brandonmcconnell commented Apr 8, 2026

Summary

Adjusts the container query breakpoint for the Columns component, changing the @sm breakpoint to @2xl for multi-column layouts. This ensures the multi-column behavior applies only on larger screen sizes, with smaller screens always rendering a single column.

Test Plan

Visual testing in storybook


Note

Low Risk
Low risk styling-only change that affects layout responsiveness for the Columns component. Main risk is unexpected column behavior at intermediate container widths.

Overview
Changes the Columns responsive behavior by moving the container-query breakpoint for multi-column layout from @sm/columns-container to @2xl/columns-container, while keeping @[0px]/columns-container:grid-cols-1 to enforce a single column on smaller containers.

This effectively delays when cols takes effect in container-query contexts, making multi-column layouts appear only at larger container sizes.

Reviewed by Cursor Bugbot for commit 046ef13. Bugbot is set up for automated code reviews on this repo. Configure here.

Update the Columns component to apply its multi-column grid layout at the `@2xl` container width, ensuring the single-column layout is maintained for smaller container sizes.
@brandonmcconnell brandonmcconnell merged commit 45cd93d into main Apr 8, 2026
3 checks passed
@brandonmcconnell brandonmcconnell deleted the brandon/adjust-container-query-breakpoint-for-columns branch April 8, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants